/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.yuhanginfo.modules.sys.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 注册用户门店关联Entity
 * @author lvls
 * @version 2017-09-27
 */
public class UserStore extends DataEntity<UserStore> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// 用户id
	private String storeCode;		// 门店号
	
	public UserStore() {
		super();
	}

	public UserStore(String id){
		super(id);
	}

	@NotNull(message="用户id不能为空")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Length(min=1, max=30, message="门店号长度必须介于 1 和 30 之间")
	public String getStoreCode() {
		return storeCode;
	}

	public void setStoreCode(String storeCode) {
		this.storeCode = storeCode;
	}
	
}